package com.luocj.elephant.demo.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

public class TouchMiView extends View {

    private Paint mPaint;
    private Paint pressPaint;

    public TouchMiView(Context context) {
        super(context);
    }

    public TouchMiView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TouchMiView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        initPaint();
    }

    private void initPaint() {
        mPaint = new Paint();
        mPaint.setColor(Color.BLUE);
        mPaint.setStyle(Paint.Style.FILL);
        mPaint.setAntiAlias(true);

        pressPaint = new Paint();
        pressPaint.setColor(Color.RED);
        pressPaint.setStyle(Paint.Style.FILL);
        pressPaint.setAntiAlias(true);

    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);

    }


    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

    }


}
